Cocktail Help Reference
ObjectManager<TKey,T> Class Members
See Also  Methods  Send Feedback
Cocktail Assembly > Cocktail Namespace : ObjectManager<TKey,T> Class


Glossary Item Box

The following tables list the members exposed by ObjectManager<TKey,T>.

Public Constructors

 NameDescription
Public ConstructorObjectManager<TKey,T> ConstructorInitializes a new ObjectManager  
Top

Public Methods

 NameDescription
Public MethodAddAllows to manually add an object instance to the ObjectManager.  
Public MethodClearRemoves all instances and keys from the manager.  
Public MethodCreateCreates an object instance without adding it to the internal managed dictionary.  
Public MethodExistsCheck if an instance with the given key exists.  
Public MethodGetObjectRetrieves an object instance by key. If the key hasn't been encountered before, a new instance will be created.  
Public MethodRemoveAllows to manually remove an object instance from the manager. A subsequent call to GetObject with the same key will create a new instance.  
Public MethodTryGetObjectRetrieves an object instance by key without creating a new instance if it doesn't exist.  
Top

See Also

© 2013 All Rights Reserved.